home *** CD-ROM | disk | FTP | other *** search
- #include <Types.h>
-
- pascal char *theTest (long *selector)
- {
- char one;
- char another;
-
- switch (selector[0])
- {
- case 0 :
- /* return test name */
- return ("unequalByte");
- break;
- case 1 : /*return test description , including test parameters in “” */
- return ("“one,1,B” != “another,2,B” byte.");
- break;
- case 2 : /*do guts of test or make call to actual test proceduure */
- one = (char) selector [1];
- another = (char) selector [2];
- if (one == another)
- { return ("Equal."); } /*in test return a string for the test*/
- else /*failing or nil for test passes */
- { return (nil); };
- break;
- default :
- return (nil);
- break;
- };
- return (nil);
- }
-
- /*
- make instructions
- c unequalByte.c -r -b -t -sym off -mbg off -s {Default} -o unequalByte.c.o
- link -mf -rt dsct=1044 -sg unequalByte="Main" -m "THETEST" ∂
- -sym off ∂
- "unequalByte.c.o" ∂
- -o "Discipline Startup"
-
- make sure the dsct number is unique and the segment name is the same as the test name
- */